package com.yc.jpyy.Rreportfordataacquisition.service.imp;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.yc.jpyy.Rreportfordataacquisition.dao.ReportForDataAcquisitionDao;
import com.yc.jpyy.Rreportfordataacquisition.service.ReportForDataAcquisitionService;
import com.yc.jpyy.base.service.BaseService;


@Service
public class ReportForDataAcquisitionServiceImpl extends BaseService implements ReportForDataAcquisitionService {
 

@Autowired
private ReportForDataAcquisitionDao reportForDataAcquisitionDao;

@Override
public Map<String, Object> getCarBillingAmount(Map<String, Object> paramsMap)
		throws DataAccessException {
	Map<String,Object> resultMap = new HashMap<>();
	List<Map<String,Object>> list = reportForDataAcquisitionDao.getCarBillingAmount(paramsMap);
	if(list != null && list.size() > 0){
		resultMap.put("returnCode", 1);
		resultMap.put("returnMsg", "操作成功");
		resultMap.put("ListData", list);
	}else{
		resultMap.put("returnCode", 0);
		resultMap.put("returnMsg", "系统无数据");
	}
	return resultMap;
}

@Override
public Map<String, Object> getPeriodSummary(Map<String, Object> paramsMap)
		throws DataAccessException {
	Map<String,Object> resultMap = new HashMap<>();
	List<Map<String,Object>> list = reportForDataAcquisitionDao.getPeriodSummary(paramsMap);
	if(list != null && list.size() > 0){
		resultMap.put("returnCode", 1);
		resultMap.put("returnMsg", "操作成功");
		resultMap.put("ListData", list);
	}else{
		resultMap.put("returnCode", 0);
		resultMap.put("returnMsg", "系统无数据");
	}
	return resultMap;
}
}
